﻿Type.registerNamespace("Microsoft.Live.ClientControls.VE.Extenders")
Microsoft.Live.ClientControls.VE.Extenders.ContinuousPan=function(element){
Microsoft.Live.ClientControls.VE.Extenders.ContinuousPan.initializeBase(this,[element])
this._x
this._y
this._toggleMode
this._mapControlID
this._running=false}
Microsoft.Live.ClientControls.VE.Extenders.ContinuousPan.prototype={
initialize : function(){
Microsoft.Live.ClientControls.VE.Extenders.ContinuousPan.callBaseMethod(this,'initialize')
$addHandler(this.get_element(),"click",Function.createDelegate(this,this._onClick))
},
get_X : function(){
return this._x
},
set_X : function(value){
this._x=value
},
get_Y : function(){
return this._y
},
set_Y : function(value){
this._y=value
},
get_ToggleMode : function(){
return this._toggleMode
},
set_ToggleMode : function(value){
this._toggleMode=value
},
get_MapControlID : function(){
return this._mapControlID
},
set_MapControlID : function(value){
this._mapControlID=value
},
_onClick : function(e){
var mapcontrol=$find(this._mapControlID)
if(mapcontrol){
switch(this._toggleMode){
case 0:
this._running=false
break
case 1:
this._running=true
break
case 2:
this._running=!this._running
break}
if(this._running){
mapcontrol.StartContinuousPan(this._x,this._y)
}else{
mapcontrol.EndContinuousPan()}}
e.preventDefault()
},
dispose : function(){
$clearHandlers(this.get_element())
Microsoft.Live.ClientControls.VE.Extenders.ContinuousPan.callBaseMethod(this,'dispose')}}
Microsoft.Live.ClientControls.VE.Extenders.ContinuousPan.registerClass("Microsoft.Live.ClientControls.VE.Extenders.ContinuousPan",Sys.UI.Behavior)
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded()
